<?php 

                    	$post_id = 1;
                    	$emails = 'dbthanhbinh@yahoo.com.vn';                    	
                    	$args = array(
							'post_type'	=> 'post',
							'include'   => array($post_id),
							'posts_per_page' =>1
						);
						query_posts($args);
						
						if(have_posts())
						{
							the_post();
						}
                    								
						$thumbnail = db_get_post_meta($post_id, $wpdb->prefix.'thumbnail');
												
						$subject=get_the_title($post_id);
						$home_title = $subject;
						$home_excerpt = db_shortDesc(get_the_content(), 300);
						
						$customer_info = array(
							'name'		=> 'dbthanhbinh',
							'phone'		=> '',
							'email'		=> $emails,
							'title'		=> $home_title,
							'message'	=> $home_excerpt,
							'thumbnail' => $thumbnail,
							'linkdetail' => get_permalink($post_id)
 						);
						
						include TEMPLATEPATH.'/mails/xtemplate-email-guitin.php';
							
						//gui_noi_dung_lien_he($config_info,$customer_info,$send_info,$user);